#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve()
{
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    int mn=INT_MAX;
    int x=min(a,c),y=min(b,d);
    // mn=min({a,b,c,d});
    if(x>=y)cout<<"Gellyfish"<<endl;
    else cout<<"Flower"<<endl;
}
signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int T=1;
    cin>>T;
    while(T--)
    {
       solve();
    }
    return 0;
}